PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawString Method / drawString(String,PDFFont,PDFBrush,double,double) Method
String to draw.
that defines the text format of the string.
that determines the color and texture of the drawn text.
The x-coordinate of the upper-left corner of the drawn text.
The y-coordinate of the upper-left corner of the drawn text.
In This Topic
    drawString(String,PDFFont,PDFBrush,double,double) Method
    In This Topic
    Draws the specified text string at the specified location with the specified and @see com.o2sol.pdf4java.graphics.PDFFont Objects.
    Syntax
    public void drawString( 
       java.lang.String s,
       PDFFont font,
       PDFBrush brush,
       double x,
       double y
    )

    Parameters

    s
    String to draw.
    font
    that defines the text format of the string.
    brush
    that determines the color and texture of the drawn text.
    x
    The x-coordinate of the upper-left corner of the drawn text.
    y
    The y-coordinate of the upper-left corner of the drawn text.
    See Also